package com.example.demo.entity.Buyer;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

import java.util.Date;

@Data
@Entity
@Table(name = "buy_plan_master")
public class BuyPlanBillDetail {
    @Id
    private int id;
    @Column(name = "bill_no")
    private String billNo;
    @Column(name = "bill_status")
    private String billStatus;
    @Column(name = "plan_date")
    private String planDate;
    @Column(name = "create_by")
    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
    @Column(name = "check_by")
    private String checkBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date checkDate;
    @Column(name = "remark")
    private String remark;
    @Column(name = "buyer_check_by")
    private String buyerCheckBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date buyerCheckDate;
    @Column(name = "update_by")
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;
    @Column(name = "taobao_check_by")
    private String taobaoCheckBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date taobaoCheckDate;
    @Column(name = "buyer_check_status")
    private String buyerCheckStatus;
    @Column(name = "planer_check_status")
    private String planerCheckStatus;
    @Column(name = "planer_check_by")
    private String planerCheckBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date planerCheckDate;
    @Column(name = "head_bill_no")
    private String headBillNo;
    @Column(name = "buyer_code")
    private String buyerCode;
    @Column(name = "buyer_lock")
    private String buyerLock;
    @Column(name = "buyer_lock_status")
    private String buyerLockStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date buyerLockDate;
}
